<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>店铺信息列表</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <#include "/view/admin/head.html"/>
      <style type="text/css">
        .table-class{
            width:90%;
            text-align: center;
            border:1px solid #afd9ee;
            margin:0 auto;
            margin-top: 50px;
        }
        .list-path{
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;

        }
        table th{
            text-align: center;
            WORD-WRAP: break-word;
            width: 100px;
        }
        table thead tr {
            background-color: #9acfea;
        }
        .table-query{
            /*height: 40px;*/
            /*width:80px;*/
            /*text-align: center;*/
            white-space:nowrap;
            /*position: relative;*/
            float: left;
            display:inherit;
            /*display: inline;*/


        }
        .label-head{
            height: 60px;
            width: 100%;
        }
        .bs-example .input-group{
            width:300px;
            float: left;
            margin-top:20px;

        }
        .bank-label{
            width:25px;
            float: left;
        }
        .label-hidden{
            display: none;
        }
        .panel-body{
            padding-top: 0px;
        }
       /* .input-group{
            margin-top:20px;
        }*/
    </style>
    <script type="text/javascript">
        function query(dm){
            var href = "${base}/classify/list.do?";

            href+='name='+$('#name').val();
                    href+='&'

            href+='value='+$('#value').val();
                    href+='&'

            href+='value2='+$('#value2').val();
                    href+='&'

            href+='classifyName='+$('#classifyName').val();
                    

            location.href=href;
        }
        $(function() {
            //初始化
        });
    </script>
</head>
<body>

<div class="list-path" > <span style="margin-left: 50px;"><span class="glyphicon glyphicon-home"></span> 店铺信息列表</span></div>

<div class="table-class">
    <div class="panel panel-default" style="margin: 10px 50px 10px;">
     <div class="panel-body">
        <form class="bs-example bs-example-form" role="form">

            <div class="input-group">
                <span class="input-group-addon">名称</span>
                <input type="text" id="name" class="form-control" value="${entity.name!}" placeholder="请输入名称">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">值</span>
                <input type="text" id="value" class="form-control" value="${entity.value!}" placeholder="请输入值">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">值2</span>
                <input type="text" id="value2" class="form-control" value="${entity.value2!}" placeholder="请输入值2">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">分类名</span>
                <input type="text" id="classifyName" class="form-control" value="${entity.classifyName!}" placeholder="请输入分类名">
            </div>
                <span class="bank-label">&nbsp;</span>


            <div class="input-group" style="text-align: right;">
                <a class="btn btn-info"  href="javascript:query(this)"><span class="glyphicon glyphicon-search"></span> 查找</a>

            </div>
        </form>
     </div>
    </div>

<#include "/view/admin/opermsg.html"/>


    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>序号</th>
                <th class="label-hidden">主键</th>
                <th>名称</th>
                <th>值</th>
                <th>值2</th>
                <th>分类名</th>

            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                        <td class="label-hidden">${c.classifyId!}</td>
                            <td>${c.name!}</td>

                            <td>${c.value!}</td>

                            <td>${c.value2!}</td>

                            <td>${c.classifyName!}</td>


                <td>
                    <a href="${base}/classify/detail.do?classifyId=${c.classifyId!}" class="btn btn-primary">详情</a>
                    <a href="${base}/classify/add.do?classifyId=${c.classifyId!}" class="btn btn-primary">修改</a>
                    <a href="${base}/classify/delete.do?classifyId=${c.classifyId!}" class="btn btn-primary">删除</a>
                </td>
            </tr>


        </#list>
        <#if 0==pagination.totalCount>
            <tr>
                <td colspan="7" style="color: red"> 没有相关数据 </td>
            </tr>
        </#if>
        <tr>
            <td colspan="5+1">
                <div style="text-align:left;margin-left: 50px;">
                    <a href="${base}/classify/add.do" class="btn btn-primary">新增</a>
                </div>
            </td>
        </tr>





        </tbody>
    </table>
        <!--<span style="text-align: left"> <a href="#" class="btn btn-primary">新增</a></span>-->
    <#include "/view/admin/pagination.html"/>


</div>
<script>
    function setPage(pageNo,pageSize){
        var href = "${base}/classify/list.do?";

            href+='name='+$('#name').val()+"&";

            href+='value='+$('#value').val()+"&";

            href+='value2='+$('#value2').val()+"&";

            href+='classifyName='+$('#classifyName').val();

        href+="&pageNo="+pageNo;
        href+="&pageSize="+pageSize;
        location.href=href;
    }

</script>

</body>
</html>
